<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景附着</title>
    <style>
        *{margin: 0;padding: 0;list-style-type: none;}
        body{
            background: url(https://tse4-mm.cn.bing.net/th/id/OIP-C.yitXWo3lKszflVsGwENZaQHaNK?w=187&h=333&c=7&r=0&o=5&dpr=1.5&pid=1.7) center/cover;

            /* 背景附着 */
            /* 
                1.fixed 将背景图附着于浏览器窗口上
                2.scroll 默认值相对于元素固定
                3.local 附着于文字
            */
            background-attachment: fixed;
        }
        div{
            height: 200px;
            margin-bottom: 100px;
            background: rgb(255, 0, 0,0.633) ;
        }
    </style>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
</body>
</html>